package com.xuecheng.api.search;

import com.xuecheng.api.search.model.dto.CoursePubIndexDTO;
import com.xuecheng.api.search.model.qo.QueryCoursePubModel;
import com.xuecheng.common.domain.page.PageVO;
import com.xuecheng.common.domain.response.RestResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value = "课程发布搜索服务API管理")
public interface CoursePubSearchApi {

    @ApiOperation("根据条件分页查询")
    PageVO<CoursePubIndexDTO> coursePubIndexByCondition(Integer pageNo, Long pageSize, QueryCoursePubModel queryModel);


    @ApiOperation("根据课程发布的id查询课程发布索引数据")
    CoursePubIndexDTO getPubIndexById(Long coursePubId);


    @ApiOperation("根据课程发布的id查询课程发布索引数据-远程调用")
    RestResponse<CoursePubIndexDTO> getPubIndexById4s(Long coursePubId);
}
